<%-- 
    Document   : activity_entry
    Created on : May 17, 2014, 7:39:25 PM
    Author     : krisada
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Activity Page</title>
    </head>
    <body>
        <br/>
        <h2>Activity Information</h2>
        <br/>
        <form:form method="POST" action="${mode_action}">
            <form:hidden path="id"/>
            <form:hidden path="process.id"/>
            <table>
                <tr>
                    <td><form:label path="activityId">Activity ID</form:label></td>
                    <td><form:input path="activityId" size="30"/></td>
                </tr>
                <tr>
                    <td><form:label path="name">Name</form:label></td>
                    <td><form:input path="name" size="30"/></td>
                </tr>
                <tr>
                    <td><form:label path="state">State</form:label></td>
                    <td><form:select path="state">
                            <form:options items="${states}"/>
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td><form:label path="description">Description</form:label></td>
                    <td><form:textarea path="description" cols="40" rows="5"/></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="Submit"/>
                    </td>
                </tr>
            </table>  
        </form:form>
    </body>
</html>
